import { Injectable } from '@angular/core';
import { RequestClass } from './request.service';
@Injectable()
export class MixedService {
    constructor(private requestclass: RequestClass) {}
    fetchCityMixed = async ({ month, list }) => {
        return await this.requestclass.request.Ppost(
            '/monthreport/getcityinfos',
            {
                params: {
                    month,
                },
                data: list,
            }
        );
    };

    fetchAreaMixed = async ({ month, list }) => {
        return await this.requestclass.request.Ppost(
            '/monthreport/getareainfos',
            {
                params: {
                    month,
                },
                data: list,
            }
        );
    };

    fetchDistrictMixed = async ({ month, list }) => {
        return await this.requestclass.request.Ppost(
            '/monthreport/getdistrictinfos',
            {
                params: {
                    month,
                },
                data: list,
            }
        );
    };

    fetchApplicantMixed = async ({ month, zoneId, zoneType }) => {
        return await this.requestclass.request.Pget(
            '/monthreport/getapplicantsinfos',
            {
                params: {
                    month,
                    zoneId,
                    zoneType,
                },
            }
        );
    };

    fetchTownMixed = async ({ month, list }) => {
        return await this.requestclass.request.Ppost(
            '/monthreport/gettowninfos',
            {
                params: {
                    month,
                },
                data: list,
            }
        );
    };
}
